bigcy / tungsten-replicator

Automatically exported from code.google.com/p/tungsten-replicator
0 stars 0 forks source link

JavaScript language test framework for JavaScript filters #496

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
1. To which tool/application/daemon will this feature apply?

Tungsten Replicator JavaScript filters.

2. Describe the feature in general

Ludovic says it can be done with browser (Ludovic to demo?).

3. Describe the feature interface

`./thl serialize -seqno X` > JSON -> Chrome/Safari/Firefox JavaScript debugger 
- Continuent provides the test/debug page.

4. Give an idea (if applicable) of a possible implementation

5. Describe pros and cons of this feature.

5a. Why the world will be a better place with this feature.

It would allow to test JS filters while writing them.

5b. What hardship will the human race have to endure if this feature is
implemented.

Additional component to maintain.

Original issue reported on code.google.com by linas.vi...@continuent.com on 20 Mar 2013 at 8:40

GoogleCodeExporter commented 8 years ago
Also we might want to provide users a testing command-line framework for 
JavaScript filters they write:

`./thl serialize` -> Test framework against some *.js -> JSON output of 
modified events

Original comment by linas.vi...@continuent.com on 20 Mar 2013 at 8:56

GoogleCodeExporter commented 8 years ago

Original comment by linas.vi...@continuent.com on 20 Mar 2013 at 9:24

GoogleCodeExporter commented 8 years ago
Sample test and debug page available at:
http://jsfiddle.net/launer/5zvVu/

Please provide sample input and simple filtering function.

Original comment by ludovic....@continuent.com on 20 Mar 2013 at 9:29

GoogleCodeExporter commented 8 years ago
Instead, let's provide a solution to write a JavaScript language test.

Original comment by linas.vi...@continuent.com on 20 Mar 2013 at 3:53

GoogleCodeExporter commented 8 years ago
What do you mean ? can you elaborate or be more specific ?  Javascript unit 
tests ?
http://stackoverflow.com/questions/300855/looking-for-a-better-javascript-unit-t
est-tool

The page is there to debug / test a filter when developing the filter. It does 
not replace unit test.

Original comment by ludovic....@continuent.com on 20 Mar 2013 at 3:58

GoogleCodeExporter commented 8 years ago
Hi Ludovic,

I believe you were not in the meeting - we discussed that having a page is not 
enough. Mainly because there's not enough context (Replicator pipeline, 
database) for the filter to do its job. What we really need is to document how 
to write JS filters (Issue 495) and provide a testing framework - the usual 
suspects for developing any component for that matter.

Original comment by linas.vi...@continuent.com on 20 Mar 2013 at 4:08

GoogleCodeExporter commented 8 years ago
We'll use 2.1.0 instead of 2.0.8, hence moving the issues.

Original comment by linas.vi...@continuent.com on 27 Mar 2013 at 3:13

GoogleCodeExporter commented 8 years ago

Original comment by linas.vi...@continuent.com on 19 Jun 2013 at 4:25

GoogleCodeExporter commented 8 years ago

Original comment by linas.vi...@continuent.com on 26 Aug 2013 at 1:54

GoogleCodeExporter commented 8 years ago
There won't be a 2.1.3.

Original comment by linas.vi...@continuent.com on 17 Sep 2013 at 10:13

GoogleCodeExporter commented 8 years ago

Original comment by linas.vi...@continuent.com on 23 Dec 2013 at 9:51

GoogleCodeExporter commented 8 years ago
 Unscheduling. Should be brought in to future releases as planning dictates.

Original comment by linas.vi...@continuent.com on 2 May 2014 at 8:18