GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - mruby-Forum/mruby-simpletest: Simple Test Using assert

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

8 Commits
8 Commits

Folders and files

NameName
Last commit message
Last commit date
mrblib
mrblib
 
 
test
test
 
 
.travis.yml
.travis.yml
 
 
.travis_build_config.rb
.travis_build_config.rb
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
mrbgem.rake
mrbgem.rake
 
 

Repository files navigation

mruby-simpletest Build Status

SimpleTest class

install by mrbgems

  • add conf.gem line to build_config.rb
MRuby::Build.new do |conf|

    # ... (snip) ...

    conf.gem :git => 'https://github.com/matsumoto-r/mruby-simpletest.git'
end

example

Test Code

t = SimpleTest.new "Test Example1"

t.assert "test1" do
  t.assert_equal "echo", "echo"
  t.assert_equal "ech", "ech"
end

t.assert "test2" do
  t.assert_equal "hoge", "hoge"
  t.assert_not_equal "hoge", "foo"
  t.assert_true true
  t.assert_false false
end

t.report

s = SimpleTest.new "Test Example2"

s.assert "test1" do
  s.assert_equal "echo", "echo"
  s.assert_equal "ech", "ech"
end

s.report

Result

$ ./bin/mruby test.rb
SimpleTest: Test Example1
..
Total: 2
   OK: 2
   KO: 0
Crash: 0
 Time: 0.0005770 seconds

SimpleTest: Test Example2
.
Total: 1
   OK: 1
   KO: 0
Crash: 0
 Time: 0.0000330 seconds

License

under the MIT License:

  • see LICENSE file

About

Simple Test Using assert

Resources

Readme
License
Activity
Custom properties

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.