Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade the VDMUnit library with VDM-SL support #668

Open
lausdahl opened this issue Feb 22, 2018 · 0 comments
Open

Upgrade the VDMUnit library with VDM-SL support #668

lausdahl opened this issue Feb 22, 2018 · 0 comments
Assignees
Labels
enhancement Not a bug, but nice to have
Milestone

Comments

@lausdahl
Copy link
Member

It would be nice with VDM-SL support for testing like VDMUnit.

It could work by using modules ending with MyTest and then scanning for operations starting with test like in VDMUnit:

It could work with a test running like:

module TestRunner
exports all
definitions 

operations 
run : ()==>()
run()== is not yet specified;

end TestRunner

then if TestRunner.run() is executed then it will run the following operations for this model:

module MyTest
operations 
test: ()==>()
test()==(IO`println("running my test now."); exit; IO`println("continuing."));

test1: ()==>()
test1()==(IO`println("running my test now."); skip; IO`println("continuing."));

test2: ()==>()
test2()==(IO`println("running my test now."); exit; IO`println("continuing."));
end MyTest

module My2Test
operations 
test: ()==>()
test()==(IO`println("running my test now2."); skip; IO`println("continuing2."));

test1: ()==>()
test1()==(IO`println("running my test now."); skip; IO`println("continuing."));

test2: ()==>()
test2()==(IO`println("running my test now."); exit; IO`println("continuing."));

end My2Test
  • MyTest: test, test1, test2 where the first one will fail
  • My2Test: test, test1, test2 where the last one will fail
@lausdahl lausdahl added the enhancement Not a bug, but nice to have label Feb 22, 2018
lausdahl added a commit that referenced this issue Feb 22, 2018
@peterwvj peterwvj added this to the v2.6.2 milestone Mar 2, 2018
@peterwvj peterwvj modified the milestones: v2.6.2, v2.6.4 May 17, 2018
@peterwvj peterwvj modified the milestones: v2.6.4, v2.6.6 Oct 18, 2018
@peterwvj peterwvj modified the milestones: v2.7.0, v2.7.2 Jun 3, 2019
@peterwvj peterwvj modified the milestones: v2.7.2, v2.7.4 Sep 30, 2019
@idhugoid idhugoid modified the milestones: v2.7.4, v3.0.2 Mar 16, 2020
@idhugoid idhugoid modified the milestones: v3.0.0, v3.0.2 Aug 28, 2020
@idhugoid idhugoid modified the milestones: v3.0.2, v3.0.4 Nov 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Not a bug, but nice to have
Projects
None yet
Development

No branches or pull requests

3 participants