cameronwills / oeunit Goto Github PK
View Code? Open in Web Editor NEWUnit testing framework for OpenEdge ABL
Unit testing framework for OpenEdge ABL
When trying to run a test from OpenEdge 11.5 Developer Studio you get the following error:
Encountered an input-blocking statement while executing a user-defined function or non-void method: 'propGet_ResultsWindow' that is invalid within the current runtime context. (2780)
Running the same from 11.3 works without problems...
Method AssertString:IsNotNullOrEmpty(val,failMessage) does not pass the failMessage parameter to subsequent calls to Assert:IsNotNull and Assert:AreNotEqual and instead calls the variants without these parameters.
This causes a default message to be returned when one has been passed as a parameter.
Undefined is neither equal to true or false, so both of these assertions should fail:
Assert:IsTrue(?).
Assert:IsFalse(?).
Unfortunately they both pass.
I believe Assert:AreEqual("", " ") should fail, but it actually passes.
In the installation documentation (file: /doc/installation.html), in step 2, it states:
Add an entry to PROPATH pointing to the \src folder where you extracted the archive.
This is correct, however, in the following screenshot, the highlighted Propath entry points to the parent directory of "C:\workspace\OEUnit".
This should probably be changed to "C:\workspace\OEUnit\src".
Hi,
I tried the dataProvider but I always get an error in Open Edge Studio.
Error = "Unable to understand after -- "(dataProvider=". (247)"
I added the "\OEUnit-master\src" directory to my propath
I just copied the code from the provided documentation in my class.
USING Progress.Lang.*.
ROUTINE-LEVEL ON ERROR UNDO, THROW.
USING OEUnit.Assertion.Assert.
USING OEUnit.Data.DataProvider.
CLASS SimpleTest:
@test (dataProvider=StatusChangeProvider).
METHOD PUBLIC VOID AcceptStatusChange(INPUT varStatus AS CHARACTER, INPUT varAccepted AS LOGICAL):
END METHOD.
@dataProvider.
METHOD PUBLIC DataProvider StatusChangeProvider():
DEFINE VARIABLE dataProvider AS DataProvider NO-UNDO.
dataProvider = NEW DataProvider().
RETURN dataProvider.
END METHOD.
END CLASS.
What is wrong here??
Hi,
Has anyone gotten OEUnit working from within Developer Studio/Eclipse of OE12.2?
Created the toolbar button/menu item as per the instructions, but nothing happens when clicking it...
Guess we'll have to give in and start using ABLUnit after all?
When the JUnit reporter is used, the "package" attribute is not output for test suites or test cases.
This can be output by using the package name of the test suite/test class. This involves stripping off the class name from the full class name (inc. package) so that just the package remains.
Not an issue, just a question: is the project still alive ? Or did everybody move to ABLUnit (or anything else) ?
The property SESSION:SUPPRESS-WARNINGS-LIST is not supported by OpenEdge 10.2B03(http://knowledgebase.progress.com/articles/Article/P137640) and is used in OEUnit.Util.Warnings.
It would be nice to update requirements in doc\index.html with 10.2B03 open edge version.
In Eclipse JUnit runner, I usually set the keyboard shortcut CTRL + SHIFT + F11 to "Rerun JUnit Test" (easy to remember as run shortcut is CTRL +F11).
This enables me to easily rerun my tests from the keyboard.
Is it possible to do something similar in OEUnit, when running from OpenEdge Architect?
Regards
Brian
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.