sbcgua / abaplinted_sample

Sample abaplinted repo
1 stars 2 forks source link

Usage of ABAPLINT.json #4

Open himanshush13 opened 4 years ago

himanshush13 commented 4 years ago

I think everything is dependent on json file, that what kind of rules we are declaring right. I have some doubts, can we declare rules similar to what our ABAP ATC does in our on-premise system. I want some hints to make my abaplint.json file like this, so that after my code is pushed from ABAP system, and if there is an error, so one can find in his pipeline. Want your feedback to this. If I am not asking much 😊 Thanks

sbcgua commented 4 years ago

Hi Himanshu. Not sure I clearly understood your question but here are some comments. Yes, the rules are defined in abaplint.json. This repo uses a very simplified config, so fill free to change it. The rules are described here - https://rules.abaplint.org/. The abaplint config should actually be committed to the repo and live there. So each time you commit new code, the devops flow can find and use it. I hope this help.

himanshush13 commented 4 years ago

Thanks, for the reply, I will check the rules first. 👍 I have some more questions, like ABAPLint is going to do the code coverage in my pipeline after that, I want to do the testing like if I can add any other tool, or Azure can help me with that, I am new to azure, but I have done, SAP+DevOps (CI/CD) with my On-premise system, so after doing Code Coverage, I have done testing by adding QFT tool in my pipeline,, but here I am fully confused. Any Hint will be appreciable. 😊

sbcgua commented 4 years ago

hmmm, but what exactly do you want to achieve? Sorry this is bit unclear :)

himanshush13 commented 4 years ago

After doing code coverage with, ABAPLint, I want to do testing, which can complete my CI part on azure pipeline as we know CI means up til testing, So, I was asking about any open source tool that I can use for testing.

sbcgua commented 4 years ago

I'm afraid no such tool yet. You need real abap environment. Probably with ERP components as well. There is a tool transpiling ABAP to JS - https://github.com/abaplint/transpiler - but it is at very very early stage now. Usually one of the real systems are used to deploy new code and run tests. Have a look at recent posts by Marcello Urbani:

I hope this helps

himanshush13 commented 4 years ago

Thank you so much for your lead and help 😊, appreciable, hope you are doing well. I will try to do something with it then.