Skip to content

MagPasulke/abap-offstack-sample

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ABAP Offstack Sample

A sample project showcasing how to use abaplint and abap-transpiler to perform off-stack ABAP linting and unit testing — no SAP system required.

Purpose

This project demonstrates that ABAP code quality checks and unit tests can be executed entirely locally or in a CI/CD pipeline, without connecting to a SAP backend.

  • Static code analysis via abaplint
  • Unit test execution via abap_transpile + Node.js

How It Works

  1. Lint: abaplint parses and analyzes the ABAP source files in /src against the rules defined in abaplint.jsonc.
  2. Transpile: abap_transpile converts the ABAP classes (including local test classes) into JavaScript.
  3. Run: The transpiled output is executed with Node.js, which runs the ABAP unit tests off-stack.

Project Structure

src/                     # ABAP source files
abaplint.jsonc           # abaplint configuration (rules, syntax version, file paths)
package.json             # Node.js dependencies and scripts

Prerequisites

Setup

npm install

Scripts

Command Description
npm run lint Run abaplint static code analysis
npm run unit Transpile ABAP and run unit tests via Node.js
npm test Run lint + unit tests

CI/CD

The .github/workflows/qualitychecks.yml workflow runs abaplint automatically on every push and pull request.

References

About

Learning open-abap & abaplint

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages