Quantcast
Channel: ABAP Development
Viewing all articles
Browse latest Browse all 948

Open Source ABAP tools - abaplint and abapCov

$
0
0

abaplint

Continuous Integration is a hot topic, but it has always been difficult to do anything for ABAP open source projects, as it would require a dedicated SAP system to run the tests on.

 

So I've started writing abaplint which is a linter written in TypeScript for checking ABAP code. abaplint compiles to javascript, which can be executed on various platforms. It will only do the "Code Inspector" part of checking the code, unit tests will not be run and is not in scope for this project.

 

abaplint will work for objects that have been serialized using abapGit, or files containing the raw abap code.

 

Currently different 17 rules have been implemented, see https://github.com/larshp/abaplint/wiki. The checks can be enabled or disabled plus configured via a abaplint.json file. The project is open source and is work in progress, so expect some problems, but pull requests and suggestions are also welcome.

 

abaplint can be setup to run on Travis CI(see example at https://travis-ci.org/larshp/abapGit), each time a push is done to the ABAP git repository, Travis will download the latest abaplint via npm and run the linter on the committed code.

 

It also works in the Atom editor,

atom.png

 

And in Eclipse(update site to be created),

eclipse.png

 

Plus on the web

web.png

 

abapCov

abapCov takes a step towards visualizing the coverage of the unit tests run on the ABAP server.

 

Run abapCov on the ABAP server, it will run the unit tests with coverage enabled, and the  coverage result is then uploaded to https://codecov.io where anyone can check it out.

 

See example at https://codecov.io/github/larshp/abapOpenChecks

 

 

 

https://github.com/larshp/abaplint or via npm

https://github.com/larshp/abapCov


Viewing all articles
Browse latest Browse all 948

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>