Trying to understand how to use PureUnit 1.3 and stuck.
Added to instruments:
"1. PureUnit on compile/run", path\PureUnitGui.exe, "%FILE" --gui --verbose, "Before compilation/run", no checkboxes or "use for main code";
"2. PureUnit on save", path\PureUnitGui.exe, "%FILE" --gui --verbose, "When saving source", no checkboxes or "use for main code".
New project started with two files - main file and include file.
Main file has one XInclude that includes include file.
Main file has one ProcedureUnit with one Assert(#True = #True) and one Debug line.
Include file has the same - one ProcedureUnit with one Assert and one Debug lines.
Now (clean 6.01 Free): removed everything except original files then tried again:
when trying to Ctrl-S include or main file or F5/Run/Compile project.Compiled: (no parameters)
Error: Compiler Error
On line: 359
Error: Constant not found: #GENERIC_WRITE.
Before (not clean 6.00):
"1. PureUnit test..." disabled in instruments.
I'm pressing Ctrl-S when include file tab selected - PureUnit window opened and it says that it tested include file successfully. Test 1 of 1 is ok.
Now I'm selecting main file and pressing Ctrl-S - PureUnit window opened and says that it tested main file and include files successfully. Tests 2 of 2 is ok.
Now I try to run (F5) code when include file tab or main file tab selected and I've got a "Syntax error" and line with "ProcedureUnit" highlighed and selected. Changing checkboxes in instruments "1/2. PureUnit test" and enabling checkbox in project compilation destination (Start instrument... "1/2. PureUnit..") changes nothing - I can't run/compile code when ProcedureUnit lines are here.
What I'm doing wrong?..
Or it is a limitation of pbcompiler in Free version?
PS: something wrong with readme:
Code: Select all
-v
--verbose
-v
--version