Skip to content

Zane-XY/ScalaTest-DBReporter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ScalaTest-DBReporter

ScalaTest database reporter is a custom reporter plugin for ScalaTest.

By default it'll collect test suites information into database. It's not hard to implement other features if you needed.

DBReporter connect DB using Slick and using H2 as default DB.

The code aims to provide an example on how to implement a custom reporter in ScalaTest.

How to use

run ScalaTest using -C x.y.z.DBReporter option.

Table Structure

INSERT INTO "TESTSUITES" ("SUITENAME",
  "CLASSNAME",
  "TIMESTAMP",
  "SUCCESSES",
  "FAILURES",
  "IGNORES",
  "PENDINGS",
  "DURATION")
VALUES (?,?,?,?,?,?,?,?)

And a h2 db file will be created at the current directory.

License

Copyright Zane.XY.W

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this software except in compliance with the License. You may obtain a copy of the License at:

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

About

ScalaTest database reporter

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages