dwf/rva: added pending icons, more red fail icon, better TODOs, and props to Jessica for the icons.
@ -196,12 +196,15 @@ Your contributions are welcome. Please submit tests with your pull request.
|
|||||||
* [Rajan Agaskar](rajan@pivotallabs.com), Pivotal Labs
|
* [Rajan Agaskar](rajan@pivotallabs.com), Pivotal Labs
|
||||||
|
|
||||||
## Acknowledgments
|
## Acknowledgments
|
||||||
A big shout out to the various JavaScript test framework authors, especially TJ for [JSpec](http://github.com/visionmedia/jspec/tree/master) - we played with it a bit before deciding that we really needed to roll our own.
|
* A big shout out to the various JavaScript test framework authors, especially TJ for [JSpec](http://github.com/visionmedia/jspec/tree/master) - we played with it a bit before deciding that we really needed to roll our own.
|
||||||
|
* Thanks to Pivot [Jessica Miller](http://www.jessicamillerworks.com/) for our fancy pass/fail/pending icons
|
||||||
|
|
||||||
## TODO List
|
## TODO List
|
||||||
|
|
||||||
In no particular order:
|
In no particular order:
|
||||||
|
|
||||||
* add a description to runs()
|
* Maybe add a description to `runs()` that gets incorporated in the message somehow?
|
||||||
|
* Empty specs - calls to `it()` without a function - should be considered Pending specs and have their numbers rolled up for reporting.
|
||||||
|
* Exception catching doesn't work after a call to `waits()`
|
||||||
|
* Add it `xit()` convention for disabled specs
|
||||||
|
* Pending & Disabled counts should be included in results
|
||||||
|
BIN
images/fail-16.png
Normal file → Executable file
Before Width: | Height: | Size: 730 B After Width: | Height: | Size: 722 B |
BIN
images/fail.png
Normal file → Executable file
Before Width: | Height: | Size: 2.1 KiB After Width: | Height: | Size: 2.1 KiB |
BIN
images/pending-16.png
Executable file
After Width: | Height: | Size: 802 B |
BIN
images/pending.png
Executable file
After Width: | Height: | Size: 2.7 KiB |
BIN
images/question-bk.png
Executable file
After Width: | Height: | Size: 2.5 KiB |
BIN
images/questionbk-16.png
Executable file
After Width: | Height: | Size: 768 B |
92
jasmine.iws
@ -101,7 +101,7 @@
|
|||||||
<file leaf-file-name="bootstrap.js" pinned="false" current="true" current-in-tab="true">
|
<file leaf-file-name="bootstrap.js" pinned="false" current="true" current-in-tab="true">
|
||||||
<entry file="file://$PROJECT_DIR$/test/bootstrap.js">
|
<entry file="file://$PROJECT_DIR$/test/bootstrap.js">
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
<state line="922" column="5" selection-start="28893" selection-end="28893" vertical-scroll-proportion="0.7703928">
|
<state line="906" column="19" selection-start="28503" selection-end="28503" vertical-scroll-proportion="0.296369">
|
||||||
<folding />
|
<folding />
|
||||||
</state>
|
</state>
|
||||||
</provider>
|
</provider>
|
||||||
@ -110,7 +110,7 @@
|
|||||||
<file leaf-file-name="jasmine.js" pinned="false" current="false" current-in-tab="false">
|
<file leaf-file-name="jasmine.js" pinned="false" current="false" current-in-tab="false">
|
||||||
<entry file="file://$PROJECT_DIR$/lib/jasmine.js">
|
<entry file="file://$PROJECT_DIR$/lib/jasmine.js">
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
<state line="244" column="8" selection-start="5226" selection-end="5226" vertical-scroll-proportion="0.38588008">
|
<state line="244" column="8" selection-start="5226" selection-end="5226" vertical-scroll-proportion="0.018375242">
|
||||||
<folding />
|
<folding />
|
||||||
</state>
|
</state>
|
||||||
</provider>
|
</provider>
|
||||||
@ -305,12 +305,17 @@
|
|||||||
<RUBY_DOC NAME="NUMBER" VALUE="0" />
|
<RUBY_DOC NAME="NUMBER" VALUE="0" />
|
||||||
</component>
|
</component>
|
||||||
<component name="RunManager">
|
<component name="RunManager">
|
||||||
<configuration default="true" type="Remote" factoryName="Remote">
|
<configuration default="true" type="Applet" factoryName="Applet">
|
||||||
<option name="USE_SOCKET_TRANSPORT" value="true" />
|
<module name="" />
|
||||||
<option name="SERVER_MODE" value="false" />
|
<option name="MAIN_CLASS_NAME" />
|
||||||
<option name="SHMEM_ADDRESS" value="javadebug" />
|
<option name="HTML_FILE_NAME" />
|
||||||
<option name="HOST" value="localhost" />
|
<option name="HTML_USED" value="false" />
|
||||||
<option name="PORT" value="5005" />
|
<option name="WIDTH" value="400" />
|
||||||
|
<option name="HEIGHT" value="300" />
|
||||||
|
<option name="POLICY_FILE" value="$APPLICATION_HOME_DIR$/bin/appletviewer.policy" />
|
||||||
|
<option name="VM_PARAMETERS" />
|
||||||
|
<option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
|
||||||
|
<option name="ALTERNATIVE_JRE_PATH" />
|
||||||
</configuration>
|
</configuration>
|
||||||
<configuration default="true" type="JUnit" factoryName="JUnit" enabled="false" merge="false">
|
<configuration default="true" type="JUnit" factoryName="JUnit" enabled="false" merge="false">
|
||||||
<module name="" />
|
<module name="" />
|
||||||
@ -358,17 +363,12 @@
|
|||||||
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
|
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="ALTERN_SDK_NAME" VALUE="" />
|
||||||
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="INHERITANCE_CHECK_DISABLED" VALUE="false" />
|
<RTEST_RUN_CONFIG_SETTINGS_ID NAME="INHERITANCE_CHECK_DISABLED" VALUE="false" />
|
||||||
</configuration>
|
</configuration>
|
||||||
<configuration default="true" type="Applet" factoryName="Applet">
|
<configuration default="true" type="Remote" factoryName="Remote">
|
||||||
<module name="" />
|
<option name="USE_SOCKET_TRANSPORT" value="true" />
|
||||||
<option name="MAIN_CLASS_NAME" />
|
<option name="SERVER_MODE" value="false" />
|
||||||
<option name="HTML_FILE_NAME" />
|
<option name="SHMEM_ADDRESS" value="javadebug" />
|
||||||
<option name="HTML_USED" value="false" />
|
<option name="HOST" value="localhost" />
|
||||||
<option name="WIDTH" value="400" />
|
<option name="PORT" value="5005" />
|
||||||
<option name="HEIGHT" value="300" />
|
|
||||||
<option name="POLICY_FILE" value="$APPLICATION_HOME_DIR$/bin/appletviewer.policy" />
|
|
||||||
<option name="VM_PARAMETERS" />
|
|
||||||
<option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
|
|
||||||
<option name="ALTERNATIVE_JRE_PATH" />
|
|
||||||
</configuration>
|
</configuration>
|
||||||
<list size="0" />
|
<list size="0" />
|
||||||
<configuration name="<template>" type="WebApp" default="true" selected="false">
|
<configuration name="<template>" type="WebApp" default="true" selected="false">
|
||||||
@ -514,39 +514,15 @@
|
|||||||
</state>
|
</state>
|
||||||
</provider>
|
</provider>
|
||||||
</entry>
|
</entry>
|
||||||
<entry file="file://$PROJECT_DIR$/example/example.js">
|
<entry file="file://$PROJECT_DIR$/test/bootstrap.html">
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
|
||||||
<state line="6" column="0" selection-start="183" selection-end="183" vertical-scroll-proportion="0.11025145">
|
|
||||||
<folding />
|
|
||||||
</state>
|
|
||||||
</provider>
|
|
||||||
</entry>
|
|
||||||
<entry file="file://$PROJECT_DIR$/lib/jasmine.css">
|
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
|
||||||
<state line="17" column="36" selection-start="351" selection-end="351" vertical-scroll-proportion="0.31237912">
|
|
||||||
<folding />
|
|
||||||
</state>
|
|
||||||
</provider>
|
|
||||||
</entry>
|
|
||||||
<entry file="file://$PROJECT_DIR$/example/example.html">
|
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
|
||||||
<state line="0" column="0" selection-start="0" selection-end="721" vertical-scroll-proportion="0.0">
|
|
||||||
<folding />
|
|
||||||
</state>
|
|
||||||
</provider>
|
|
||||||
<provider editor-type-id="HtmlPreview">
|
<provider editor-type-id="HtmlPreview">
|
||||||
<state />
|
<state />
|
||||||
</provider>
|
</provider>
|
||||||
</entry>
|
|
||||||
<entry file="file://$PROJECT_DIR$/test/bootstrap.html">
|
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
<state line="12" column="4" selection-start="533" selection-end="533" vertical-scroll-proportion="0.23626943">
|
<state line="12" column="4" selection-start="533" selection-end="533" vertical-scroll-proportion="0.23626943">
|
||||||
<folding />
|
<folding />
|
||||||
</state>
|
</state>
|
||||||
</provider>
|
</provider>
|
||||||
<provider editor-type-id="HtmlPreview">
|
|
||||||
<state />
|
|
||||||
</provider>
|
|
||||||
</entry>
|
</entry>
|
||||||
<entry file="file://$PROJECT_DIR$/lib/json_reporter.js">
|
<entry file="file://$PROJECT_DIR$/lib/json_reporter.js">
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
@ -557,14 +533,38 @@
|
|||||||
</entry>
|
</entry>
|
||||||
<entry file="file://$PROJECT_DIR$/lib/jasmine.js">
|
<entry file="file://$PROJECT_DIR$/lib/jasmine.js">
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
<state line="244" column="8" selection-start="5226" selection-end="5226" vertical-scroll-proportion="0.38588008">
|
<state line="244" column="8" selection-start="5226" selection-end="5226" vertical-scroll-proportion="0.018375242">
|
||||||
|
<folding />
|
||||||
|
</state>
|
||||||
|
</provider>
|
||||||
|
</entry>
|
||||||
|
<entry file="file://$PROJECT_DIR$/example/example.html">
|
||||||
|
<provider editor-type-id="HtmlPreview">
|
||||||
|
<state />
|
||||||
|
</provider>
|
||||||
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
|
<state line="0" column="0" selection-start="0" selection-end="721" vertical-scroll-proportion="0.0">
|
||||||
|
<folding />
|
||||||
|
</state>
|
||||||
|
</provider>
|
||||||
|
</entry>
|
||||||
|
<entry file="file://$PROJECT_DIR$/lib/jasmine.css">
|
||||||
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
|
<state line="17" column="36" selection-start="351" selection-end="351" vertical-scroll-proportion="0.31237912">
|
||||||
|
<folding />
|
||||||
|
</state>
|
||||||
|
</provider>
|
||||||
|
</entry>
|
||||||
|
<entry file="file://$PROJECT_DIR$/example/example.js">
|
||||||
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
|
<state line="6" column="0" selection-start="183" selection-end="183" vertical-scroll-proportion="0.11025145">
|
||||||
<folding />
|
<folding />
|
||||||
</state>
|
</state>
|
||||||
</provider>
|
</provider>
|
||||||
</entry>
|
</entry>
|
||||||
<entry file="file://$PROJECT_DIR$/test/bootstrap.js">
|
<entry file="file://$PROJECT_DIR$/test/bootstrap.js">
|
||||||
<provider selected="true" editor-type-id="text-editor">
|
<provider selected="true" editor-type-id="text-editor">
|
||||||
<state line="922" column="5" selection-start="28893" selection-end="28893" vertical-scroll-proportion="0.7703928">
|
<state line="906" column="19" selection-start="28503" selection-end="28503" vertical-scroll-proportion="0.296369">
|
||||||
<folding />
|
<folding />
|
||||||
</state>
|
</state>
|
||||||
</provider>
|
</provider>
|
||||||
|