Skip to content

Commit

Permalink
Added tests for all rules to check for common problems, fixed Rhino t…
Browse files Browse the repository at this point in the history
…esting issue, updated unit tests
  • Loading branch information
Nicholas C. Zakas committed Oct 18, 2011
1 parent f5423d0 commit 500fcf8
Show file tree
Hide file tree
Showing 14 changed files with 1,168 additions and 670 deletions.
15 changes: 13 additions & 2 deletions build.xml
Expand Up @@ -94,7 +94,7 @@
</target>

<!-- run tests on the command line -->
<target name="test" depends="build.all">
<target name="test" depends="build.all,test.general.rules">
<exec executable="java" failonerror="true">
<arg line="-jar"/>
<arg path="${lib.dir}/js.jar"/>
Expand All @@ -104,6 +104,17 @@
</exec>
</target>

<!-- must be done separately from other tests due to Rhino limitations -->
<target name="test.general.rules">
<exec executable="java" failonerror="true">
<arg line="-jar"/>
<arg path="${lib.dir}/js.jar"/>
<arg path="${lib.dir}/yuitest-rhino-cli.js" />
<arg path="${build.dir}/${core.build.file}" />
<arg path="${tests.dir}/all-rules.js" />
</exec>
</target>

<!-- build the core library -->
<target name="build.core">
<concat destfile="${build.dir}/${core.build.file}" fixlastline="true">
Expand Down Expand Up @@ -181,7 +192,7 @@
<!-- build the tests into a single file -->
<target name="build.tests">
<concat destfile="${build.dir}/${tests.build.file}" fixlastline="true">
<fileset dir="${tests.dir}/" includes="**/*.js" />
<fileset dir="${tests.dir}/" includes="**/*.js" excludes="all-rules.js" />
</concat>
</target>

Expand Down
1,049 changes: 1,049 additions & 0 deletions output.txt

Large diffs are not rendered by default.

113 changes: 0 additions & 113 deletions release/docs/cli.md

This file was deleted.

186 changes: 0 additions & 186 deletions release/docs/developer-guide.md

This file was deleted.

16 changes: 0 additions & 16 deletions release/docs/ide.md

This file was deleted.

0 comments on commit 500fcf8

Please sign in to comment.